/**
"Initialize" - 初始化服务器上​​的动态组
"终止" - 终止服务器上的动态组
“InitializePlayer” - 客户端是否初始化
"TerminatePlayer" - 客户端是否终止
"IsInitialized" - 检查动态组是否已初始化
"RegisterGroup" - 注册一个组
"UnregisterGroup" - 取消注册组
"IsGroupRegistered" - 组是否已经注册
"SetName" - 设置组的名称，以后也会更新组的 GroupId
"SetPrivateState" - 设置组的私有状态
"SwitchLeader" - 将给定组的领导者切换到给定的玩家
"AddGroupMember" - 将组成员添加到组

"RemoveGroupMember" - 将玩家从一组切换到另一组
"KickPlayer" - 从组中踢出一名玩家，除非被邀请或使用 UnKickPlayer 被踢出，否则玩家将无法加入该组
"UnKickPlayer" - 从组中踢出一名玩家
"WasPlayerKickedFrom" - 指定玩家是否被踢出指定组
"GetAllGroups" - 返回所有已注册且有效的组
 */
waituntil {!isNull player};
[] call ETF_clientInit;
["InitializePlayer", [player, true]] call BIS_fnc_dynamicGroups; // 初始化播放器/客户端动态组框架并注册玩家组
["SetPrivateState",[group player,true]] call BIS_fnc_dynamicGroups; //设置组为私有
["SetName",[group player,format["%1的小队",name player]]] call BIS_fnc_dynamicGroups; //更名
player setPos (getPos startPos);//初始化成功
//初始化UI
[100,100] call Destiny_fnc_init;

call M4_fnc_LocalFun;//初始化

0 spawn M4_fnc_checkExto;

call M4_fnc_loadPlayerInfo;

[] spawn M4_fnc_screenMarker;

call M4_fnc_CheckName;

[] spawn M4_fnc_progressionInit;

addMissionEventHandler ["EntityKilled", {
	params ["_unit", "_killer", "_instigator", "_useEffects"];

	if (name _instigator == name player) then {
		[-0.03184] call M4_fnc_kill;
	};
}];

_ppradhigh1 = ppEffectCreate ["filmGrain", 50]; 
_ppradhigh1 ppEffectEnable true; 
_ppradhigh1 ppEffectAdjust [0.1, -6, 0.1, 0.01, 1, false]; 
_ppradhigh1 ppEffectCommit 4;